package com.chaos.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chaos.framework.model.entity.AutoIdModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 *
 * @author Jacky.Cui
 * @since 2024-11-13
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper =false)
@Accessors(chain = true)
@TableName("t_user")
@ApiModel(value="TUser实体", description="C端用户")
public class TUser extends AutoIdModel {


    @ApiModelProperty(value = "phone")
    @TableField("phone")
    private String phone;


    @ApiModelProperty(value = "昵称")
    @TableField("nickname")
    private String nickname;


    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;


    @ApiModelProperty(value = "支付宝用户openid")
    @TableField("ali_open_id")
    private String aliOpenId;


    @ApiModelProperty(value = "微信open id")
    @TableField("wx_open_id")
    private String wxOpenId;


    @ApiModelProperty(value = "用户备注")
    @TableField("remark")
    private String remark;


    @ApiModelProperty(value = "最后登陆")
    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;


    @ApiModelProperty(value = "用户状态 1 已删除 0 在使用中")
    @TableField("status")
    private Integer status;


    @ApiModelProperty(value = "生日")
    @TableField("birthday")
    private LocalDate birthday;


    @ApiModelProperty(value = "性别 保密、男、女 对应0、1 、2")
    @TableField("gender")
    private Integer gender;


}
